import { createRouter,createWebHistory } from "vue-router";
import System from '@/views/system/system.vue';
import userSys from "@/views/system/userSys.vue";
import RoleSys from "@/views/system/roleSys.vue";
import LogSys from "@/views/system/logSys.vue";
import MenuSys from "@/views/system/menuSys.vue";
import DepSys from "@/views/system/depSys.vue";
import PostSys from "@/views/system/postSys.vue";
import Index from "@/views/index.vue";
import Land from "@/views/land.vue"

const router = createRouter({
    history: createWebHistory(),
    routes:[
        {
            path:'/',
            name:'/',
            component:System,
            redirect:'/index',
            children:[
                {
                    path:'/index',
                    component:Index
                },
                {
                    path:'/system/roleSys',
                    component:RoleSys
                },
                {
                    path:'/system/depSys',
                    component:DepSys
                },
                {
                    path:'/system/menuSys',
                    component:MenuSys
                },
                {
                    path:'/system/postSys',
                    component:PostSys
                },
                {
                    path:'/system/userSys',
                    component:userSys
                }
                
            ]
        },
        
    ]
})

export default router;